import config from '../config';
import { ApiGenerator } from './apiGenerator';
const genApi = new ApiGenerator(config.server).genApi;
console.log("config===",config);
// 用户相关api
export const userApi = genApi({
  login: 'POST /auth/login',
  logout: {
    url: '/auth/logout',
    method: 'POST',
    headers: {
      'content-type': 'application/x-www-form-urlencoded'
    }
  }
});
